home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
ASM
/
PORT.ASM
< prev
next >
Wrap
Assembly Source File
|
2000-09-26
|
2KB
|
100 lines
arg1 equ 16384+00
arg2 equ 16384+02
arg3 equ 16384+04
arg4 equ 16384+06
arg5 equ 16384+08
start:
mov ah,9
mov dx,offset jstart
int 21h
mov ah,1
mov al,30
int 0b
cmp di,-1
jne janus_okay
mov dx,offset jfehler
mov ah,9
int 21h
jmp ende
janus_okay:
mov janus_ofs,di
push ds
mov ds,0d400
mov si,cs:janus_ofs
mov di,0
mov es,040
mov ds:w[si+arg1],1
mov ds:w[si+arg2],es:w[08]
mov ds:w[si+arg3],es:w[0A]
mov ds:w[si+arg4],es:w[0C]
mov ds:w[si+arg5],es:w[0E]
call near call_and_wait
mov ds:w[si+arg1],2
xor ah,ah
xor bh,bh
xor ch,ch
xor dh,dh
mov al,es:b[078]
mov bl,es:b[079]
mov cl,es:b[07A]
mov dl,es:b[07B]
mov ds:w[si+arg2],ax
mov ds:w[si+arg3],bx
mov ds:w[si+arg4],cx
mov ds:w[si+arg5],dx
call near call_and_wait
mov ds:w[si+arg1],3
mov ds:w[si+arg2],es:w[00]
mov ds:w[si+arg3],es:w[02]
mov ds:w[si+arg4],es:w[04]
mov ds:w[si+arg5],es:w[06]
call near call_and_wait
mov ds:w[si+arg1],4
xor ah,ah
xor bh,bh
xor ch,ch
xor dh,dh
mov al,es:b[07C]
mov bl,es:b[07D]
mov cl,es:b[07E]
mov dl,es:b[07F]
mov ds:w[si+arg2],ax
mov ds:w[si+arg3],bx
mov ds:w[si+arg4],cx
mov ds:w[si+arg5],dx
call near call_and_wait
mov ds:w[si+arg1],10
call near call_and_wait
pop ds
ende:
ret
call_and_wait proc near
mov ah,7
mov al,30
int 0b
mov ah,8
mov al,30
int 0b
ret
call_and_wait endp
janus_ofs dw 0
jstart db "ATUtilities Port-Setup - Version 1.0",13,10,"$"
jfehler: db "Amiga-Handler an Janus-Interrupt 30 ist nicht aktiv.",13,10
db "Bitte berprfen Sie die Installation der ATUtilities.",13,10
db "Schnittstellen-Daten konnten nicht bertragen werden.",13,10,"$"
end